package com.topsoft.micro.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.topsoft.micro.feign.SendSmsServiceFeign;

@RestController
@RequestMapping(value = "/feign")
public class ConsumerController {

    @Autowired
    SendSmsServiceFeign sendSmsService;
    
    
    @RequestMapping(value = "/hello")
    public String hello(@RequestParam("name")String name) {
        String result=sendSmsService.hello(name);
        return result;
    }
    
   

}